package com.reguang.service;

import java.util.List;
import java.util.Map;

import com.github.pagehelper.PageInfo;
import com.reguang.pojo.SysRoleDO;

public interface SysRoleService {

	/**
	 * 
	 * <p>Title: queryOne</p>
	 * <p>Description: 根据条件查询一条数据</p>
	 * @param record
	 * @return
	 */
	SysRoleDO queryOne(SysRoleDO record);

	/**
	 * 
	 * <p>Title: list</p>
	 * <p>Description: 分页查询数据列表</p>
	 * @param params
	 * @return
	 */
	PageInfo<SysRoleDO> list(Map<String, Object> params);

	/**
	 * 
	 * <p>Title: queryByPrimaryKey</p>
	 * <p>Description: 根据主键查询数据</p>
	 * @param id
	 * @return
	 */
	SysRoleDO queryByPrimaryKey(Integer id);

	/**
	 * 
	 * <p>Title: save</p>
	 * <p>Description: 保存</p>
	 * @param role
	 * @return
	 */
	Integer save(SysRoleDO role);

	/**
	 * 
	 * <p>Title: update</p>
	 * <p>Description: 修改</p>
	 * @param role
	 * @return
	 */
	Integer update(SysRoleDO role);

	/**
	 * 
	 * <p>Title: deleteById</p>
	 * <p>Description: 根据主键做删除</p>
	 * @param role
	 * @return
	 */
	Integer deleteById(Integer id);

	/**
	 * 
	 * <p>Title: getAllRoles</p>
	 * <p>Description: 查询全部权限</p>
	 * @return
	 */
	List<SysRoleDO> getAllRoles();

	/**
	 * 
	 * <p>Title: queryListByUserId</p>
	 * <p>Description: 查询用户角色</p>
	 * @param id
	 * @return
	 */
	List<SysRoleDO> queryListByUserId(String id);

}
